package newhiant.hianto2o.com.activity;

import android.databinding.DataBindingUtil;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import java.util.ArrayList;
import java.util.List;

import newhiant.hianto2o.com.R;
import newhiant.hianto2o.com.databinding.ActivityListShowBinding;
import newhiant.hianto2o.com.model.User;

public class ActivityShowList extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ActivityListShowBinding showBinding = DataBindingUtil.setContentView(this, R.layout.activity_list_show);
//        setContentView(R.layout.activity_show_list);
        List<User> userList = new ArrayList<>();
        userList.add(new User(30,"黄药师", "东邪" ,"111"));
        userList.add(new User(33,"欧阳锋", "西毒","222"));
        showBinding.setUserList(userList);
    }
}
